package com.honry.common.domain.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;
import com.honry.common.AssertionConcern;

/**
 * 用于ORM工具的委派标识类（层超类型）。
 * @author machao
 *
 */
public class IdentifiedDomainObject extends AssertionConcern implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private long id;
	
	protected IdentifiedDomainObject() {
		super();
		this.setId(-1);
	}
	
	protected long id(){
		return this.id;
	}
	private void setId(long anId){
		this.id=anId;
	}

}
